CFLAG = -std=c++11 -I ../include
LFLAG = -L ../lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz

all : server client

server : server.cc ./proto/codec.cc ./request/request.pb.cc ./response/response.pb.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

client : client.cc ./proto/codec.cc ./request/request.pb.cc ./response/response.pb.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

.PHONY : clean
clean :
	rm -rf server client
